"""Takes an argument in the form template_name/arg1/arg2/arg3"""
def parse_args(arg):
    t = True
    arg_dump = []
    st_dump = []
    path = []
    for i in arg[:len(arg)]:
        if t and i != '/':
    		path.append(i)
        if t and i == '/':
	        t = False
	        st_dump = []
        elif i == '/':
            arg_dump.append(''.join(st_dump))
            st_dump = []
        else:
            st_dump.append(i)
    return ''.join(path), arg_dump
